package tl

type signTlTaskEnum = string

type signTlTaskStruct struct {
	SIGN_INITIAL signTlTaskEnum
	SIGN_TARGET  signTlTaskEnum
	NO_SIGN      signTlTaskEnum
}

// 标记输送线进入任务枚举
var SignTlTaskEnum = &signTlTaskStruct{
	SIGN_INITIAL: "SIGN_INITIAL",
	SIGN_TARGET:  "SIGN_TARGET",
	NO_SIGN:      "NO_SIGN",
}

var signTlTaskMap = map[signTlTaskEnum]string{
	SignTlTaskEnum.SIGN_INITIAL: "标记起点处输送线进入任务",
	SignTlTaskEnum.SIGN_TARGET:  "标记终点处输送线进入任务",
	SignTlTaskEnum.NO_SIGN:      "不标记",
}

//获取其对应中文描述
func GetSignTlTaskDesc(code signTlTaskEnum) string {
	if mode, ok := signTlTaskMap[code]; ok {
		return mode
	} else {
		return "未知类型"
	}
}
